﻿using System;
using System.Diagnostics;

namespace Coding4Fun.Cannon.Phone.Complete
{
    public enum MessageType
	{
        Error,
        Information,
        Warning,
        Memory
	}

    public static class Logger
    {
        public static void WriteLine(string message, MessageType messageType)
        {
            Debug.WriteLine(String.Format("{0} | Message:{1} | Type:{2}", DateTime.Now, message, messageType)); 
        }

        public static string GetDateTime()
        {
            var t = DateTime.Now;
            return String.Format("{0}:{1}:{2}:{3}", t.Hour,t.Minute, t.Second,t.Millisecond); 
        }

        public static void WriteLine(string message)
        {
            WriteLine(message, MessageType.Information); 
        }
    }
}
